package com.example.mybatis.plugin;

import com.github.houbb.log.integration.core.Log;
import com.github.houbb.log.integration.core.LogFactory;

import java.util.Arrays;

public class SimpleLogInterceptor extends AbstractInterceptor {
    private static final Log LOG = LogFactory.getLog(SimpleLogInterceptor.class);


    @Override
    void after(Invocation invocation, Object result) {
        LOG.info("----result:{}", result);
    }

    @Override
    void before(Invocation invocation) {
        LOG.info("----param:{}", Arrays.toString(invocation.getArgs()));
    }
}
